package com.yazi.mxz.common.service;

import java.util.List;

import com.myframework.smhj.common.exception.MyException;
import com.myframework.smhj.hibernate.dao.Service;
import com.yazi.mxz.common.entity.beans.Member;
import com.yazi.mxz.common.entity.beans.SecurityQuestion;

public interface SecurityQuestionService extends Service<SecurityQuestion> {
	
	/**
	 * 设置新的安全问答(多个),覆盖原有的安全问答
	 * @param member 用户(游离对象)
	 * @param sqList 安全问答(多个)
	 */
	void addByMember(Member member, List<SecurityQuestion> sqList) throws MyException;
	
	/**
	 * 	查询安全问答
	 * @param sq
	 * @return
	 * */
	List<SecurityQuestion> list(SecurityQuestion sq);

}
